<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %>
<%--
  Created by IntelliJ IDEA.
  User: 86153
  Date: 2021/7/11
  Time: 20:26
  To change this template use File | Settings | File Templates.
--%>
<%@ page contentType="text/html;charset=UTF-8" language="java" %>
<html>
<head>
    <title>Title</title>
</head>

<%--引入base标签--%>
<%--http://localhost:8080/atcrowdfunding02_admin_webui/--%>
<base href="http://${pageContext.request.serverName}:${pageContext.request.serverPort}${pageContext.request.contextPath}/">

<script type="application/javascript" src="jquery/jquery-2.1.1.min.js"></script>
<script type="application/javascript" src="layer/layer.js"></script>

<script type="application/javascript">
    $(function () {
        $("#btn1").click(function () {
            $.ajax({
                url: "ajax01.json",
                data: {},
                dataType:"json",
                success:function (resp) {
                    console.log(resp);
                }
            })
        });
        $("#btn2").click(function () {
            location.href ="ajax01.json";
        });
        $("#btn3").click(function(){
            layer.msg("layer的弹窗");
        });
        $("#btn4").click(function () {
            location.href = "admin/to/login/page.html";
        })
    })


</script>

<body>
<a href="test/ssm.html">发送test/ssm.html请求</a>

<button id="btn1">发送ajax请求</button>
<button id="btn2">发送普通请求</button>

<button id="btn3">点我弹框</button>
<button id="btn4">前往登录</button>
</body>
</html>
